<?php

header( "Access-Control-Allow-Origin:*" );


$NAME = $_POST['NAME'];
$VALUE = $_POST['VALUE'];
$CMD = array(
	'name' => $NAME,
	'value' => $VALUE
);

if(($CMD['name'] != null) && ($CMD['value'] != null)){
	$cmd = "/home/pi/modules/ITemp.sh ".$CMD['name']." ".$CMD['value'];
	system($cmd);
	echo $cmd;
}else{
	echo "error";
}

?>
